package chamber.zero.file;

import chamber.zero.guice.Default;
import com.google.inject.AbstractModule;

import java.nio.charset.Charset;

/**
 * Created by Gerardo on 12/3/13.
 */
public class FileModule extends AbstractModule {
    @Override
    protected void configure() {
        bind(FileFactory.class).to(TextFileFactory.class);
        bind(Charset.class).annotatedWith(Default.class).toInstance(Charset.defaultCharset());
    }
}
